#include <testngpp/internal/TestCase.h>
#include <testngpp/internal/TestFixtureDesc.h>
#include <testngpp/internal/TestSuiteDesc.h>
#include <testngpp/internal/DataDriven.h>
#include "TestAdder.h"

static struct TESTCASE_TestAdder_test_17
   : public TESTNGPP_NS::TestCase
{
   TESTCASE_TestAdder_test_17()
      : TESTNGPP_NS::TestCase
        ( "1 + 2 => 3"
        , "base test"
        , "TestAdder"
        , 0
        , "TestAdder.h"
        , 17)
   {}

   void setFixture(TESTNGPP_NS::TestFixture* fixture)
   {
      if(fixture == 0)
      {
         belongedFixture = new TestAdder();
      }
      else
      {
         belongedFixture = dynamic_cast<TestAdder*>(fixture);
      }
   }

   void runTest()
   {
      
belongedFixture->test_17()
;
   }

   TESTNGPP_NS::TestFixture* getFixture() const
   {
      return belongedFixture;
   }

   unsigned int numberOfTags() const
   {
      return 0;
   }

   const char** getTags() const
   {
      static const char* tags[] = {0};
      return tags;
   }

   const char* getMemCheckSwitch() const
   {
      static const char* memCheckSwitch = "none";
      return memCheckSwitch;
   }

private:
   TestAdder* belongedFixture;
} testcase_instance_TestAdder_test_17 ;



static struct TESTCASE_TestAdder_test_22
   : public TESTNGPP_NS::TestCase
{
   TESTCASE_TestAdder_test_22()
      : TESTNGPP_NS::TestCase
        ( "mockcpp global mocker test"
        , "base test"
        , "TestAdder"
        , 0
        , "TestAdder.h"
        , 22)
   {}

   void setFixture(TESTNGPP_NS::TestFixture* fixture)
   {
      if(fixture == 0)
      {
         belongedFixture = new TestAdder();
      }
      else
      {
         belongedFixture = dynamic_cast<TestAdder*>(fixture);
      }
   }

   void runTest()
   {
      
belongedFixture->test_22()
;
   }

   TESTNGPP_NS::TestFixture* getFixture() const
   {
      return belongedFixture;
   }

   unsigned int numberOfTags() const
   {
      return 0;
   }

   const char** getTags() const
   {
      static const char* tags[] = {0};
      return tags;
   }

   const char* getMemCheckSwitch() const
   {
      static const char* memCheckSwitch = "none";
      return memCheckSwitch;
   }

private:
   TestAdder* belongedFixture;
} testcase_instance_TestAdder_test_22 ;



static struct TESTCASE_TestAdder_test_32
   : public TESTNGPP_NS::TestCase
{
   TESTCASE_TestAdder_test_32()
      : TESTNGPP_NS::TestCase
        ( "mockcpp mock object test"
        , "base test"
        , "TestAdder"
        , 0
        , "TestAdder.h"
        , 32)
   {}

   void setFixture(TESTNGPP_NS::TestFixture* fixture)
   {
      if(fixture == 0)
      {
         belongedFixture = new TestAdder();
      }
      else
      {
         belongedFixture = dynamic_cast<TestAdder*>(fixture);
      }
   }

   void runTest()
   {
      
belongedFixture->test_32()
;
   }

   TESTNGPP_NS::TestFixture* getFixture() const
   {
      return belongedFixture;
   }

   unsigned int numberOfTags() const
   {
      return 0;
   }

   const char** getTags() const
   {
      static const char* tags[] = {0};
      return tags;
   }

   const char* getMemCheckSwitch() const
   {
      static const char* memCheckSwitch = "none";
      return memCheckSwitch;
   }

private:
   TestAdder* belongedFixture;
} testcase_instance_TestAdder_test_32 ;



static TESTNGPP_NS::TestCase* g_TESTCASEARRAY_TestAdder[] = {
&testcase_instance_TestAdder_test_17,
&testcase_instance_TestAdder_test_22,
&testcase_instance_TestAdder_test_32,
0
};




static struct TESTCASE_TestDataDrivenTest_test_50_0
   : public TESTNGPP_NS::TestCase
{
   TESTCASE_TestDataDrivenTest_test_50_0()
      : TESTNGPP_NS::TestCase
        ( "this is a parametered() test(1, 2, 3)"
        , "DataDrivenTest"
        , "TestAdder"
        , 0
        , "TestAdder.h"
        , 50)
   {}

   void setFixture(TESTNGPP_NS::TestFixture* fixture)
   {
      if(fixture == 0)
      {
         belongedFixture = new TestDataDrivenTest();
      }
      else
      {
         belongedFixture = dynamic_cast<TestDataDrivenTest*>(fixture);
      }
   }

   void runTest()
   {
      
runParameterizedTest(belongedFixture, &TestDataDrivenTest::test_50, &belongedFixture->mydata, 0)
;
   }

   TESTNGPP_NS::TestFixture* getFixture() const
   {
      return belongedFixture;
   }

   unsigned int numberOfTags() const
   {
      return 0;
   }

   const char** getTags() const
   {
      static const char* tags[] = {0};
      return tags;
   }

   const char* getMemCheckSwitch() const
   {
      static const char* memCheckSwitch = "none";
      return memCheckSwitch;
   }

private:
   TestDataDrivenTest* belongedFixture;
} testcase_instance_TestDataDrivenTest_test_50_mydata0 ;



static struct TESTCASE_TestDataDrivenTest_test_50_1
   : public TESTNGPP_NS::TestCase
{
   TESTCASE_TestDataDrivenTest_test_50_1()
      : TESTNGPP_NS::TestCase
        ( "this is a parametered() test(77, 20, 97)"
        , "DataDrivenTest"
        , "TestAdder"
        , 0
        , "TestAdder.h"
        , 50)
   {}

   void setFixture(TESTNGPP_NS::TestFixture* fixture)
   {
      if(fixture == 0)
      {
         belongedFixture = new TestDataDrivenTest();
      }
      else
      {
         belongedFixture = dynamic_cast<TestDataDrivenTest*>(fixture);
      }
   }

   void runTest()
   {
      
runParameterizedTest(belongedFixture, &TestDataDrivenTest::test_50, &belongedFixture->mydata, 1)
;
   }

   TESTNGPP_NS::TestFixture* getFixture() const
   {
      return belongedFixture;
   }

   unsigned int numberOfTags() const
   {
      return 0;
   }

   const char** getTags() const
   {
      static const char* tags[] = {0};
      return tags;
   }

   const char* getMemCheckSwitch() const
   {
      static const char* memCheckSwitch = "none";
      return memCheckSwitch;
   }

private:
   TestDataDrivenTest* belongedFixture;
} testcase_instance_TestDataDrivenTest_test_50_mydata1 ;



static struct TESTCASE_TestDataDrivenTest_test_50_2
   : public TESTNGPP_NS::TestCase
{
   TESTCASE_TestDataDrivenTest_test_50_2()
      : TESTNGPP_NS::TestCase
        ( "this is a parametered() test(101, 503, 604)"
        , "DataDrivenTest"
        , "TestAdder"
        , 0
        , "TestAdder.h"
        , 50)
   {}

   void setFixture(TESTNGPP_NS::TestFixture* fixture)
   {
      if(fixture == 0)
      {
         belongedFixture = new TestDataDrivenTest();
      }
      else
      {
         belongedFixture = dynamic_cast<TestDataDrivenTest*>(fixture);
      }
   }

   void runTest()
   {
      
runParameterizedTest(belongedFixture, &TestDataDrivenTest::test_50, &belongedFixture->mydata, 2)
;
   }

   TESTNGPP_NS::TestFixture* getFixture() const
   {
      return belongedFixture;
   }

   unsigned int numberOfTags() const
   {
      return 0;
   }

   const char** getTags() const
   {
      static const char* tags[] = {0};
      return tags;
   }

   const char* getMemCheckSwitch() const
   {
      static const char* memCheckSwitch = "none";
      return memCheckSwitch;
   }

private:
   TestDataDrivenTest* belongedFixture;
} testcase_instance_TestDataDrivenTest_test_50_mydata2 ;



static TESTNGPP_NS::TestCase* g_TESTCASEARRAY_TestDataDrivenTest[] = {
&testcase_instance_TestDataDrivenTest_test_50_mydata0,
&testcase_instance_TestDataDrivenTest_test_50_mydata1,
&testcase_instance_TestDataDrivenTest_test_50_mydata2,
0
};




/*static*/ TESTNGPP_NS::TestFixtureDesc test_fixture_desc_instance_TestAdder
   ( "base test"
   , "TestAdder.h"
   , g_TESTCASEARRAY_TestAdder
   , (sizeof(g_TESTCASEARRAY_TestAdder)/sizeof(g_TESTCASEARRAY_TestAdder[0])) - 1
   );



/*static*/ TESTNGPP_NS::TestFixtureDesc test_fixture_desc_instance_TestDataDrivenTest
   ( "DataDrivenTest"
   , "TestAdder.h"
   , g_TESTCASEARRAY_TestDataDrivenTest
   , (sizeof(g_TESTCASEARRAY_TestDataDrivenTest)/sizeof(g_TESTCASEARRAY_TestDataDrivenTest[0])) - 1
   );



static TESTNGPP_NS::TestFixtureDesc* array_of_fixture_desc_TestAdder[] = {
&test_fixture_desc_instance_TestAdder,
&test_fixture_desc_instance_TestDataDrivenTest,
0
};




static TESTNGPP_NS::TestSuiteDesc test_suite_desc_instance_TestAdder
   ( "TestAdder"
   , array_of_fixture_desc_TestAdder
   , (sizeof(array_of_fixture_desc_TestAdder)/sizeof(array_of_fixture_desc_TestAdder[0])) - 1
   );



extern "C" DLL_EXPORT TESTNGPP_NS::TestSuiteDesc* ___testngpp_test_suite_desc_getter() {
   return &test_suite_desc_instance_TestAdder;
}


